<div class="content">
    <?php
    if(isset($CatHome) && count($CatHome)){foreach($CatHome as $key =>$value){
        if($value['type_category']==11){
        ?>
        <div class="content_top">
            <div class="heading">
                <h3><?php echo $value['title']?></h3>
            </div>
            <div class="see">
                <p><a href="<?php echo $value['alias'].'-'.$value['type_category'].'-'.$value['id'].'.html'?>">See all Products</a></p>
            </div>
            <div class="clear"></div>
        </div>
        <div class="section group">
        <?php foreach($value['listProduct'] as $key1=>$value1){?>
            <div class="grid_1_of_4 images_1_of_4">
                <a href="<?php echo'san-pham/'.$value1['alias'].'/'.$value1['id'].'.html'?>"><img src="<?php echo $value1['image']?>" alt="" /></a>
                <h2><?php echo $value1['title']?> </h2>
                <div class="price-details">
                    <div class="price-number">
                        <p><span class="rupees"><?php echo number_format($value1['price']);?>đ</span></p>
                    </div>
                    <div class="add-cart">
                        <h4><a href="them-vao-gio-hang/<?php echo $value1['alias'].'/'.$value1['id']?>.html">Add to Cart</a></h4>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        <?php }   }   ?>

    <?php  }   } ?>
    <?php
    if(isset($CatHome) && count($CatHome)){foreach($CatHome as $key =>$value){
        if($value['type_category']==22){
            ?>
            <div class="content_top">
                <div class="heading">
                    <h3><?php echo $value['title']?></h3>
                </div>
                <div class="see">
                    <p><a href="<?php echo $value['alias'].'-'.$value['type_category'].'-'.$value['id'].'.html'?>">See all Products</a></p>
                </div>
                <div class="clear"></div>
            </div>
            <div class="section group">
            <?php foreach($value['listNote'] as $key1=>$value1){?>
                <div class="image group">
                    <div class="grid images_3_of_1">
                        <img src="<?php echo !empty($value1['image'])?$value1['image']:'/business-economy/upload/userfiles/images/images.jpg'?>" alt="<?php echo $value1['title']?>">
                    </div>
                    <div class="grid news_desc">
                        <h3><?php echo $value1['title']?> </h3>
                        <h4><?php echo $value1['creattime'];?><span><a href="#">Finibus Bonorum</a></span></h4>
                        <p><?php echo $value1['description']?><a href="<?php echo 'tin-tuc/'.$value1['alias'].'/'.$value1['id'].'.html'?>" title="<?php echo $value1['title']?>">[....]</a></p>
                    </div>
                </div>
            <?php }   }   ?>
        </div>
    <?php  }   } ?>
    </div>
</div>